package api;

public class test1 {
    public static void main(String[] args) {
        int n = 5;
        System.out.println(isPrime(n));
    }
    public static boolean isPrime(int n)
    {

        if(n<=1)
        {
            return false;
        }
        else
        {
            int i = 0;
            for(i = 2;i <= Math.sqrt(n);i++) {
                if (n % i == 0) {
                    return false;
                }
            }
        }
        return true;
    }
}
